/**
 * 
 */
package kr.co.insoft.core.model.template.script;

import java.io.Serializable;

import kr.co.insoft.auth.model.security.User;
import flexjson.JSONSerializer;


/**
 * TABLE : T_BASE_SCRIPT
 * 
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public class ScriptEntityModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -715645747810155810L;
	String scriptid; 
	String scriptName;
	String script;
	String scriptDesc;
	String updatedDate;
	Long userid;
	String companyid;
	String writer;

	public String toString() {
		return (new JSONSerializer()).deepSerialize(this);
	}
	
	public void setAuth(User user) {
		this.userid = user.getId();
		this.companyid = user.getCompanyId();
	}
	
	/**
	 * @return the scriptDesc
	 */
	public String getScriptDesc() {
		return scriptDesc;
	}

	/**
	 * @param scriptDesc the scriptDesc to set
	 */
	public void setScriptDesc(String scriptDesc) {
		this.scriptDesc = scriptDesc;
	}

	/**
	 * @return the companyid
	 */
	public String getCompanyid() {
		return companyid;
	}

	/**
	 * @param companyid the companyid to set
	 */
	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	/**
	 * @return the scriptid
	 */
	public String getScriptid() {
		return scriptid;
	}

	/**
	 * @param scriptid the scriptid to set
	 */
	public void setScriptid(String scriptid) {
		this.scriptid = scriptid;
	}

	/**
	 * @return the userid
	 */
	public Long getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}

	/**
	 * @return the writer
	 */
	public String getWriter() {
		return writer;
	}

	/**
	 * @param writer the writer to set
	 */
	public void setWriter(String writer) {
		this.writer = writer;
	}

	/**
	 * @return the scriptName
	 */
	public String getScriptName() {
		return scriptName;
	}

	/**
	 * @param scriptName the scriptName to set
	 */
	public void setScriptName(String scriptName) {
		this.scriptName = scriptName;
	}

	/**
	 * @return the script
	 */
	public String getScript() {
		return script;
	}

	/**
	 * @param script the script to set
	 */
	public void setScript(String script) {
		this.script = script;
	}

	/**
	 * @return the updatedDate
	 */
	public String getUpdatedDate() {
		return updatedDate;
	}

	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(String updatedDate) {
		this.updatedDate = updatedDate;
	}
	
}
